import { ApiProperty } from '@nestjs/swagger';
import { MessageDto } from './message.dto';  // 确保路径正确

export class GetMessagesResponseDto {
  @ApiProperty({
    description: '总条目数',
    example: 100,
  })
  total: number;

  @ApiProperty({
    description: '当前页码',
    example: 1,
  })
  page: number;

  @ApiProperty({
    description: '每页条目数',
    example: 10,
  })
  limit: number;

  @ApiProperty({
    description: '消息列表',
    type: [MessageDto],
  })
  list: MessageDto[];
}
